//============================================================================
// Name        : box-region.cpp
// Author      : Abhishek Kaushik
// Version     :
// Copyright   : this software is developed and copyrighted by techfied sys
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>

#include "Rectangle.h"
#include "Region.h"

using namespace std;
using namespace tf;
int main() {
	cout << "**** test ****" << endl;

	Rectangle rect1(10, 10, 100, 200);
	cout << "rect1=" << rect1.str() << endl;

	Rectangle rect2(50, 50, 100, 200);
	cout << "rect2=" << rect2.str() << endl;

	Region reg1(&rect1);
	cout << "reg1=" << reg1.str() << endl;
	cout << "reg1 bounds=" << reg1.bounds().str() << endl;

	cout << endl;

	reg1.add(&rect2);
	cout << "reg1=" << reg1.str() << endl;
	cout << "reg1 bounds=" << reg1.bounds().str() << endl;

	return 0;
}
